export const columns = [
  {
    title: "序号",
    dataIndex: "",
    key: "rowIndex",
    width: 60,
    align: "center",
    customRender: function (t, r, index) {
      return parseInt(index) + 1;
    },
  },
  {
    title: "项目名称",
    align: "center",
    dataIndex: "projectName",
  },
  {
    title: "项目编码",
    align: "center",
    dataIndex: "projectCode",
  },
  {
    title: "所在区域",
    align: "center",
    dataIndex: "location",
    scopedSlots: { customRender: "location" },
  },
  {
    title: "建设地址",
    align: "center",
    dataIndex: "buildAddress",
    scopedSlots: { customRender: "buildAddress" },
  },
  {
    title: "建设类别",
    align: "center",
    dataIndex: "projectType",
    scopedSlots: { customRender: "projectType" },
  },

  {
    title: "工程可行性研究",
    align: "center",
    children: [
      {
        title: "工可批复里程（公里）",
        dataIndex: "feasibilityResearchReplyMileage",
        align: "center",
        scopedSlots: { customRender: "feasibilityResearchReplyMileage" },
      },
      {
        title: "工可批复总投资（万元）",
        dataIndex: "feasibilityResearchReplyTotalInvest",
        align: "center",
        scopedSlots: { customRender: "feasibilityResearchReplyTotalInvest" },
      },
      {
        title: "工可批复建安费（万元）",
        dataIndex: "feasibilityResearchReplyConstructionInstallCost",
        align: "center",
        scopedSlots: {
          customRender: "feasibilityResearchReplyConstructionInstallCost",
        },
      },
    ],
  },
  {
    title: "初步设计",
    align: "center",
    children: [
      {
        title: "初设批复里程（公里）",
        dataIndex: "preApproveDistance",
        align: "center",
        scopedSlots: { customRender: "preApproveDistance" },
      },
      {
        title: "初设批复总投资（万元）",
        dataIndex: "preApproveFunding",
        align: "center",
        scopedSlots: { customRender: "preApproveFunding" },
      },
      {
        title: "初设批复建安费（万元）",
        dataIndex: "preApproveCost",
        align: "center",
        scopedSlots: { customRender: "preApproveCost" },
      },
    ],
  },
  {
    title: "施工图设计",
    align: "center",
    children: [
      {
        title: "施设批复里程（公里）",
        dataIndex: "blueApproveDistance",
        align: "center",
        scopedSlots: { customRender: "blueApproveDistance" },
      },
      {
        title: "施设批复总投资（万元）",
        dataIndex: "blueApproveFunding",
        align: "center",
        scopedSlots: { customRender: "blueApproveFunding" },
      },
      {
        title: "施设批复建安费（万元）",
        dataIndex: "blueApproveCost",
        align: "center",
        scopedSlots: { customRender: "blueApproveCost" },
      },
    ],
  },
  {
    title: "项目状态",
    align: "center",
    dataIndex: "projectStatusText",
    // scopedSlots: { customRender: 'projectStatus' },
  },
  {
    title: "操作",
    dataIndex: "action",
    align: "center",
    fixed: "right",
    width: 147,
    scopedSlots: { customRender: "action" },
  },
];
